<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
    测试
    <br>
    <p th:text="${hello}">默认值</p>
    <p th:each="item:${list}" th:text="${item}"></p>

    <p th:each="item:${list}">
        <input th:text="${item}" th:value="${item}">
    </p>



    <input type="checkbox" th:checked="${check}=='0'">
    <a th:href="'javascript:a(\''+${hello}+'\')'">点我</a>

    <div th:include="indexInner">引入页面</div>
    <div th:include="indexInner::innerPart">部分引入</div>
<script language="JavaScript">
    function a(hello) {
        alert("js函数被调用"+hello)
    }
</script>
</body>
</html>